Completed
Push — master ( a31174...af3b49 )
by Antonio
10s
created

T_IDENTIFIER ➔ ... ➔ this.write   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
1
define(function() {
2
3
    /**
4
     * @class
5
     */
6
    var JsonGeneratorStorage = function() {
7
8
        /**
9
         * @protected
10
         * @type {Object}
11
         */
12
        var $data = {};
13
14
        /**
15
         * @public
16
         * @param {Object} $_data
17
         */
18
        this.write = function($_data) {
19
20
            $data = $_data;
21
        };
22
23
24
        /**
25
         * @public
26
         * @returns {Object}
27
         */
28
        this.read = function() {
29
30
            return $data;
31
        };
32
    };
33
34
    return JsonGeneratorStorage;
35
});